﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace System.WXT.Infrstructre.Migrations
{
    /// <inheritdoc />
    public partial class wxt202412131530 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "productionPicking",
                columns: table => new
                {
                    productionPickingId = table.Column<int>(type: "integer", nullable: false)
                        .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
                    productionPickingName = table.Column<string>(type: "text", nullable: true),
                    productionPickingNumbering = table.Column<string>(type: "text", nullable: true),
                    productionPickingDate = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
                    productionPickingPerson = table.Column<string>(type: "text", nullable: true),
                    TicketsName = table.Column<string>(type: "text", nullable: true),
                    TicketsNumbering = table.Column<string>(type: "text", nullable: true),
                    productionPickingTaskName = table.Column<string>(type: "text", nullable: true),
                    productionPickingTaskNumbering = table.Column<string>(type: "text", nullable: true),
                    craftManageName = table.Column<string>(type: "text", nullable: true),
                    processName = table.Column<string>(type: "text", nullable: true),
                    productionPickingRemark = table.Column<string>(type: "text", nullable: true),
                    productionPickingTotal = table.Column<int>(type: "integer", nullable: false),
                    productionPickingState = table.Column<int>(type: "integer", nullable: false),
                    productionPickingIsDel = table.Column<int>(type: "integer", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_productionPicking", x => x.productionPickingId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "productionPicking");
        }
    }
}
